from flask import Flask, Blueprint
from .user import bp as user_bp
from .index import bp as index_bp
# 创建sys
system_bp = Blueprint('system', __name__, url_prefix='/system')


def register_system_bps(app: Flask):
    # 在admin_bp, 2级路由
    system_bp.register_blueprint(user_bp)
    app.register_blueprint(system_bp)
    # 1级uer
    app.register_blueprint(user_bp)
    # 1级路由
    app.register_blueprint(index_bp)